
BINDIR = ../bin

include ../Makefile.common

PACKAGE = daytrader

CWD = $(PWD)

# targets:
$(PACKAGE): framework lib strategy test data common types

framework: common $(PACKAGE)/framework/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/framework/*.java

lib: common $(PACKAGE)/lib/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/lib/*.java

strategy: common $(PACKAGE)/strategy/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/strategy/*.java

test: framework testcases testsuite

testcases: $(PACKAGE)/test/*Test.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/test/*Test.java

testsuite: testcases
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/test/TestSuite*.java

data: common $(PACKAGE)/data/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/data/*.java

common: $(PACKAGE)/common/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/common/*.java

types: $(PACKAGE)/types/*.java
	$(JAVAC) -d $(BINDIR) $(PACKAGE)/types/*.java

.PHONY: clean

clean:
	rm -rf $(BINDIR)/$(PACKAGE)

